import PowerList from "./../../../controls/lists/power";
import List from "./../../../controls/lists";
import WdsjDetail from "./../../../controls/detail/wdsj";
import YqljDetail from "./../../../controls/detail/yqlj";
import Xxzl from "./../../../controls/detail/xxzl";
import TabService from "./../../tabservice";

class LodgeService extends TabService {
	defaultData() {
		let info = {
			tabs: [
				{"name": "学习专栏", active: true, type: Xxzl},
				{"name": "我的书架", active: false, type: WdsjDetail},
				// {
				// 	"name": "信息推荐", active: false, type: List, option: {
				// 		url: "/api/cms/cmsArticleCache/queryPage",
				// 		type: PowerList
				// 	}
				// },
				{"name": "友情链接", active: false, type: YqljDetail}
			]
		};
		this.setTabs(info.tabs);
		return info;
	}

	onupdate(current, data) {
		Object.assign(current, data);
	}
}

export default LodgeService;